﻿namespace Simple.Services.System.Dictionary.Models
{
    public class ConversationModel
    {
        public Guid? ConversationId { get; set; }

        public Guid? TargetId { get; set; }

        public string? Name { get; set; }

        public string? Portrait { get; set; }

        public bool IsNewMessage { get; set; }

        public ConversationRecordModel? LastMessage { get; set; }
    }

    public class ConversationRecordModel
    {
        public Guid? ConversationId { get; set; }

        public DateTime? MessageTime { get; set; }

        public string? Content { get; set; }

        public Guid? Sender { get; set; }

        public string? ParentName { get; set; }

        public string? ParentPortrait { get; set; }

        public string? TeacherName { get; set; }

        public string? TeacherPortrait { get; set; }

        public bool IsNewMessage { get; set; }

        public bool IsMySend{ get; set; }
    }

    public class SendConversationModel
    {
        public Guid? ConversationId { get; set; }

        public Guid? TargetId { get; set; }

        public string? Content { get; set; }
    }

    public class SendConversationOutPutModel
    {
        public Guid ConversationId { get; set; }

        public List<ConversationRecordModel> Messages { get; set; }
    }
}
